package com.hhc.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * <p>
 *   课程查询参数封装对象
 * </p>
 * @author pc
 */
@Data
public class CourseQuery {
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码必须大于0")
    private Integer current;

    @NotNull(message = "每页大小不能为空")
    @Min(value = 1, message = "每页大小必须大于0")
    private Integer size;

    // 新增搜索条件
    private String courseName;
    private String courseCode;
    private Integer credits;

}